package com.shycloud.mido.member.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shycloud.mido.member.api.entity.OnlineCourseRecord;
import com.shycloud.mido.member.api.vo.OnlineCourseRecordVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Xiaoxing Yu
 * @date 2020/10/15
 **/
public interface OnlineCourseRecordMapper extends BaseMapper<OnlineCourseRecord> {

	List<OnlineCourseRecordVO> selectAllTeacherStudentRecordsByMonth(
			@Param(value = "year") Integer year,
			@Param(value = "month") String month,
			@Param(value = "studentId") String studentId,
			@Param(value = "teacherId") String teacherId);

	List<OnlineCourseRecordVO> selectTeacherStudentRecordsByDate (
			@Param(value = "studentId") String studentId,
			@Param(value = "teacherId") String teacherId,
			@Param(value = "dateStr") String dateStr);

	List<OnlineCourseRecordVO> selectTeacherStudentRecordsByDate2 (
			@Param(value = "studentId") String studentId,
			@Param(value = "teacherId") String teacherId,
			@Param(value = "dateStr") String dateStr);

}
